Optimal. Leaf size=50 \[ a^3 \log (x)+\frac {3 a^2 b x^n}{n}+\frac {3 a b^2 x^{2 n}}{2 n}+\frac {b^3 x^{3 n}}{3 n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {266, 43} \[ \frac {3 a^2 b x^n}{n}+a^3 \log (x)+\frac {3 a b^2 x^{2 n}}{2 n}+\frac {b^3 x^{3 n}}{3 n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 266
Rubi steps
\begin {align*} \int \frac {\left (a+b x^n\right )^3}{x} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {(a+b x)^3}{x} \, dx,x,x^n\right )}{n}\\ &=\frac {\operatorname {Subst}\left (\int \left (3 a^2 b+\frac {a^3}{x}+3 a b^2 x+b^3 x^2\right ) \, dx,x,x^n\right )}{n}\\ &=\frac {3 a^2 b x^n}{n}+\frac {3 a b^2 x^{2 n}}{2 n}+\frac {b^3 x^{3 n}}{3 n}+a^3 \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 41, normalized size = 0.82 \[ a^3 \log (x)+\frac {b x^n \left (18 a^2+9 a b x^n+2 b^2 x^{2 n}\right )}{6 n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.66, size = 44, normalized size = 0.88 \[ \frac {6 \, a^{3} n \log \relax (x) + 2 \, b^{3} x^{3 \, n} + 9 \, a b^{2} x^{2 \, n} + 18 \, a^{2} b x^{n}}{6 \, n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b x^{n} + a\right )}^{3}}{x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 52, normalized size = 1.04 \[ \frac {a^{3} \ln \left (x^{n}\right )}{n}+\frac {3 a^{2} b \,x^{n}}{n}+\frac {3 a \,b^{2} x^{2 n}}{2 n}+\frac {b^{3} x^{3 n}}{3 n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.45, size = 48, normalized size = 0.96 \[ \frac {a^{3} \log \left (x^{n}\right )}{n} + \frac {2 \, b^{3} x^{3 \, n} + 9 \, a b^{2} x^{2 \, n} + 18 \, a^{2} b x^{n}}{6 \, n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.16, size = 46, normalized size = 0.92 \[ a^3\,\ln \relax (x)+\frac {b^3\,x^{3\,n}}{3\,n}+\frac {3\,a^2\,b\,x^n}{n}+\frac {3\,a\,b^2\,x^{2\,n}}{2\,n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.42, size = 53, normalized size = 1.06 \[ \begin {cases} a^{3} \log {\relax (x )} + \frac {3 a^{2} b x^{n}}{n} + \frac {3 a b^{2} x^{2 n}}{2 n} + \frac {b^{3} x^{3 n}}{3 n} & \text {for}\: n \neq 0 \\\left (a + b\right )^{3} \log {\relax (x )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________